package com.raa.log;

import java.util.Optional;
import java.util.logging.Logger;

public class LoggerProvider {

	public static Logger provide(Class<?> clazz) {
		return provide(Optional.ofNullable(clazz)
				.map(Class::getSimpleName)
				.orElse("[No Name]"));
	}

	public static Logger provide(String name) {
		return Logger.getLogger(name);
	}
}
